<%@ page import="cn.kgc.util.Contants" %>
<%@ page import="cn.kgc.pojo.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%
    String path = request.getContextPath();  // /web01
    String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    //  http://localhost:8888/web01/   相对路径
    int count = application.getAttribute(Contants.ONLINE_COUNT)!=null?(int)application.getAttribute(Contants.ONLINE_COUNT):0;

    request.setAttribute("count",count);
    User user= (User) session.getAttribute(Contants.LOGIN_USER);
    request.setAttribute("user",user);
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%--整个网页相对路径就是   basepath--%>
    <base href="<%=basepath%>" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>无标题文档</title>
    <link type="text/css" rel="stylesheet" href="css/common.css"/>
    <style type="text/css">
    </style>
</head>
<body>

<div id="header">
    <div class="main-top">
        <div class="logo"><a href=""><span>新闻大视野</span></a></div>
        在线人数：${count} ${LOGIN_USER.userName}
        <div class="nav">
            <ul class="clearfix">
                <li><a href="#">首页</a></li>
                <li><a href="#">国内</a></li>
                <li><a href="#">国际</a></li>
                <li><a href="#">娱乐</a></li>
                <li><a href="#">军事</a></li>
            </ul>
        </div>
    </div>
    <!--banner-->
    <div class="main-banner">
        <img src="images/banner.png">
    </div>
    <!--管理工具栏-->
    <div class="admin-bar">
        <span class="fr">退出账户</span>
        管理员：admin 2012-06-19
    </div>
</div>

</body>
</html>